package com.dsh.order.dao.impl;

import java.util.HashMap;
import java.util.List;
import java.util.Map;

import javax.annotation.Resource;




import org.mybatis.spring.SqlSessionTemplate;
import org.springframework.stereotype.Repository;

import com.dsh.code.entity.Page;
import com.dsh.order.dao.OrderManageDao;
import com.dsh.order.entity.OrderManage;
import com.github.pagehelper.PageHelper;
import com.github.pagehelper.PageInfo;
@Repository
public class OrderManageDaoImpl implements OrderManageDao {
	@Resource(name="sqlSession")
	private SqlSessionTemplate sqlSession;
	/**
	 * 查询相关订单信息
	 * @param bean
	 * @return
	 */
	@Override
	public PageInfo<OrderManage> getList(OrderManage bean,Integer pageNum,Integer pageSize) {	
		
		PageHelper.startPage(pageNum, pageSize);
		List<OrderManage> list = sqlSession.selectList("orderManageMap.getListByPage",bean);
		PageInfo<OrderManage> page1 = new PageInfo(list);
		return page1;
	}
	
	@Override
	public List<OrderManage> getListByShopId(OrderManage bean) {
		// TODO Auto-generated method stub
		return null;
	}
	@Override
	public List<OrderManage> getListByCustomerId(OrderManage bean) {
		// TODO Auto-generated method stub
		return null;
	}
	@Override
	public List<OrderManage> getListByCustomerName(OrderManage bean) {
		// TODO Auto-generated method stub
		return null;
	}
	@Override
	public List<OrderManage> getListByCreateDate(OrderManage bean) {
		// TODO Auto-generated method stub
		return null;
	}
	@Override
	public List<OrderManage> getListByUpdDate(OrderManage bean) {
		// TODO Auto-generated method stub
		return null;
	}
	@Override
	public List<OrderManage> getListByIsPay(OrderManage bean) {
		// TODO Auto-generated method stub
		return null;
	}
	@Override
	public List<OrderManage> getListByIsSure(OrderManage bean) {
		// TODO Auto-generated method stub
		return null;
	}
	@Override
	public List<OrderManage> getListByDskNum(OrderManage bean) {
		// TODO Auto-generated method stub
		return null;
	}
	@Override
	public OrderManage getOrderManage(int orderId) {
		// TODO Auto-generated method stub
		return null;
	}
	@Override
	public int deleteOrderManage(OrderManage bean) {
		// TODO Auto-generated method stub
		return 0;
	}
	@Override
	public int deleteOrderManage(int orderId) {
		// TODO Auto-generated method stub
		return 0;
	}
	@Override
	public int addOrderManage(OrderManage bean) {
		// TODO Auto-generated method stub
		return 0;
	}
	@Override
	public int addOrderManageList(List<OrderManage> orderManageList) {
		// TODO Auto-generated method stub
		return 0;
	}
	@Override
	public int updateOrderManage(int orderId) {
		// TODO Auto-generated method stub
		return 0;
	}
	@Override
	public int updateOrderManage(OrderManage bean) {
		// TODO Auto-generated method stub
		return 0;
	}
	@Override
	public int updateOrderManageList(List<OrderManage> bean) {
		// TODO Auto-generated method stub
		return 0;
	}
	@Override
	public List<OrderManage> getListById(OrderManage bean) {
		// TODO Auto-generated method stub
		return null;
	}
	public List<OrderManage> getListByUpdId(OrderManage bean) {
		// TODO Auto-generated method stub
		return null;
	}
	@Override
	public List<OrderManage> getListId(OrderManage bean) {
		// TODO Auto-generated method stub
		return null;
	}
	
	
	
}
